﻿<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page language="java" contentType="text/html; UTF-8" isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <link type="text/css" rel="stylesheet" media="all" href="../styles/global.css" />
        <link type="text/css" rel="stylesheet" media="all" href="../styles/global_color.css" />        
    </head>
    <body>
        <!--Logo区域开始-->
        <div id="header">
            <img src="../images/logo.png" alt="logo" class="left"/>
            <a href="login.jsp">[退出]</a>
        </div>
        <!--Logo区域结束-->
        <!--导航区域开始-->
        <div id="navi">
            <ul id="menu">
                <li><a href="../index.jsp" class="index_off"></a></li>
                <li><a href="../role/role_list.jsp" class="role_off"></a></li>
                <li><a href="../admin/admin_list.jsp" class="admin_off"></a></li>
                <li><a href="../fee/fee_list.jsp" class="fee_off"></a></li>
                <li><a href="../account/account_list.jsp" class="account_off"></a></li>
                <li><a href="../service/service_list.jsp" class="service_off"></a></li>
                <li><a href="../bill/bill_list.jsp" class="bill_off"></a></li>
                <li><a href="../report/report_list.jsp" class="report_off"></a></li>
                <li><a href="user_info.jsp" class="information_off"></a></li>
                <li><a href="user_modi_pwd.jsp" class="password_on"></a></li>
            </ul>
        </div>
        <!--导航区域结束-->
        <div id="main">      
            <!--保存操作后的提示信息：成功或者失败-->      
            <div id="save_result_info" class="save_success">保存成功！</div><!--保存失败，旧密码错误！-->
            <form action="/updatepassword" method="post" class="main_form">
                <input type="text" value="${adminInfo.adminId}" name="admin_id" style="display: none">
                <div class="text_info clearfix"><span>旧密码：</span></div>
                <div class="input_info">
                    <input type="password" class="width200" onkeyup="checkup()" id="bpswd"/><span class="required">*</span>
                    <div class="validate_msg_medium" id="check_ti" >30长度以内的字母、数字和下划线的组合</div>

                    <script type="text/javascript">
                        <!--
                        function checkup(){
                            if (bpswd.value!=${adminInfo.password})
                            {
                                check_ti.innerHTML="<font color=red>密码错误！！请重新输入</font>";
                            }else{
                                check_ti.innerHTML="<font color=blue>密码正确！！</font>";
                            }
                        }
                        //-->
                    </script>

                </div>


                <div class="text_info clearfix" ><span>新密码：</span></div>
                <div class="input_info">
                    <input id=password onkeyup="check()" name="password">
                    <span class="required">*</span>
                    <div class="validate_msg_long error_msg">30长度以内的字母、数字和下划线的组合</div>
                </div>
                <div class="text_info clearfix"><span>重复新密码：</span></div>
                <div class="input_info">
                    <input type="password" id=re_password onkeyup="check()">
                    <span class="required">*</span>
                    <div class="validate_msg_long error_msg" id="check_tip">-</div>

                    <script type="text/javascript">
                        <!--
                        function check(){
                            if (password.value!=re_password.value)
                            {
                                check_tip.innerHTML="<font color=red>两次输入的密码不相符</font>";
                            }else{
                                check_tip.innerHTML="<font color=blue>两次输入的密码相符</font>";
                            }
                        }
                        //-->
                    </script>
                </div>


                <div class="button_info clearfix">
                    <input type="submit" value="保存" class="btn_save" />
                    <input type="reset" value="取消" class="btn_save" />
                </div>
            </form>  
        </div>
        <!--主要区域结束-->
        <div id="footer">
            <p>[源自北美的技术，最优秀的师资，最真实的企业环境，最适用的实战项目]</p>
            <p>版权所有(C)云科技有限公司 </p>
        </div>
    </body>
</html>
